package com.eorchis.module.planopinion.bean;

import java.io.Serializable;
import java.util.Date;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommonField;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.util.DateUtil;
import com.eorchis.utils.utils.PropertyUtil;

public class PlanOpinionExportBean implements ICommond,ICommonField {

	private String className;
	private String planId;
	private String depName;
	private String depId;
	private String feedbackDateStr;
	private String issuedId;
	private String opinionTitle;
	private String opinionValue;
	private String opinionValues[];
	private String opinionTitles[];
	private Integer[] EachCount;
	private String eachCountStr;
	private Integer opinionCount;
	private Integer issuedCount;
	private String applyNum;//计划编号
	private String undertakeName;//承办部委
	private String jointName;//合办部委
	private Integer planDay;//学制
//	private String planDate;//计划时间
	private Date startPlanDate;//计划开始时间
	private Date endPlanDate;//计划结束时间
	private String startPlanDateStr;//计划开始时间
	private String endPlanDateStr;//计划结束时间

	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getDepId() {
		return depId;
	}
	public void setDepId(String depId) {
		this.depId = depId;
	}
	public String getFeedbackDateStr() {
		return feedbackDateStr;
	}
	public void setFeedbackDateStr(String feedbackDateStr) {
		this.feedbackDateStr = feedbackDateStr;
	}
	public String getIssuedId() {
		return issuedId;
	}
	public void setIssuedId(String issuedId) {
		this.issuedId = issuedId;
	}
	public String getOpinionTitle() {
		return opinionTitle;
	}
	public void setOpinionTitle(String opinionTitle) {
		this.opinionTitle = opinionTitle;
	}
	public String getOpinionValue() {
		return opinionValue;
	}
	public void setOpinionValue(String opinionValue) {
		this.opinionValue = opinionValue;
	}
	public Integer[] getEachCount() {
		return EachCount;
	}
	public void setEachCount(Integer[] eachCount) {
		EachCount = eachCount;
	}
	public Integer getOpinionCount() {
		return opinionCount;
	}
	public void setOpinionCount(Integer opinionCount) {
		this.opinionCount = opinionCount;
	}
	public Integer getIssuedCount() {
		return issuedCount;
	}
	public void setIssuedCount(Integer issuedCount) {
		this.issuedCount = issuedCount;
	}
	public String getEachCountStr() {
		return eachCountStr;
	}
	public void setEachCountStr(String eachCountStr) {
		String []e=eachCountStr.split(",");
		EachCount=new Integer[e.length];
		for(int i=0;i<e.length;i++){
			EachCount[i]=Integer.valueOf(e[i]);
		}
		this.eachCountStr = eachCountStr;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getPlanId() {
		return planId;
	}
	public void setPlanId(String planId) {
		this.planId = planId;
	}
	public String[] getOpinionValues() {
		return opinionValues;
	}
	public void setOpinionValues(String opinionValues[]) {
		this.opinionValues = opinionValues;
	}
	public String getApplyNum() {
		return applyNum;
	}
	public void setApplyNum(String applyNum) {
		this.applyNum = applyNum;
	}
	public String getUndertakeName() {
		return undertakeName;
	}
	public void setUndertakeName(String undertakeName) {
		this.undertakeName = undertakeName;
	}
	public String getJointName() {
		return jointName;
	}
	public void setJointName(String jointName) {
		this.jointName = jointName;
	}
	public Integer getPlanDay() {
		return planDay;
	}
	public void setPlanDay(Integer planDay) {
		this.planDay = planDay;
	}
	public String[] getOpinionTitles() {
		return opinionTitles;
	}
	public void setOpinionTitles(String opinionTitles[]) {
		this.opinionTitles = opinionTitles;
	}
	@Override
	public Integer getActiveState() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Date getCreateDate() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public void setActiveState(Integer integer) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void setCreateDate(Date date) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public Serializable getEntityID() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public IBaseEntity toEntity() {
		// TODO Auto-generated method stub
		return null;
	}
	public Date getStartPlanDate() {
		return startPlanDate;
	}
	public void setStartPlanDate(Date startPlanDate) {
		this.startPlanDateStr=DateUtil.DateToStringYMD(startPlanDate);
		this.startPlanDate = startPlanDate;
	}
	public Date getEndPlanDate() {
		return endPlanDate;
	}
	public void setEndPlanDate(Date endPlanDate) {
		if(PropertyUtil.objectNotEmpty(endPlanDate)){
			this.endPlanDateStr=DateUtil.DateToStringYMD(endPlanDate);
		}
		this.endPlanDate = endPlanDate;
	}
	public String getStartPlanDateStr() {
		return startPlanDateStr;
	}
	public void setStartPlanDateStr(String startPlanDateStr) {
		this.startPlanDateStr = startPlanDateStr;
	}
	public String getEndPlanDateStr() {
		return endPlanDateStr;
	}
	public void setEndPlanDateStr(String endPlanDateStr) {
		this.endPlanDateStr = endPlanDateStr;
	}

}
